// Code generated by mockery v2.20.0. DO NOT EDIT.

package mocks

import (
	context "context"
	"gitverse.ru/synapse/kubelatte/pkg/api/v1alpha1"

	mock "github.com/stretchr/testify/mock"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"

	watch "k8s.io/apimachinery/pkg/watch"
)

// TriggerInterface is an autogenerated mock type for the TriggerInterface type
type TriggerInterface struct {
	mock.Mock
}

// Create provides a mock function with given fields: ctx, trigger
func (_m *TriggerInterface) Create(ctx context.Context, trigger *v1alpha1.Trigger) (*v1alpha1.Trigger, error) {
	ret := _m.Called(ctx, trigger)

	var r0 *v1alpha1.Trigger
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *v1alpha1.Trigger) (*v1alpha1.Trigger, error)); ok {
		return rf(ctx, trigger)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *v1alpha1.Trigger) *v1alpha1.Trigger); ok {
		r0 = rf(ctx, trigger)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*v1alpha1.Trigger)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *v1alpha1.Trigger) error); ok {
		r1 = rf(ctx, trigger)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Delete provides a mock function with given fields: ctx, name, opts
func (_m *TriggerInterface) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
	ret := _m.Called(ctx, name, opts)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string, v1.DeleteOptions) error); ok {
		r0 = rf(ctx, name, opts)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Get provides a mock function with given fields: ctx, name, options
func (_m *TriggerInterface) Get(ctx context.Context, name string, options v1.GetOptions) (*v1alpha1.Trigger, error) {
	ret := _m.Called(ctx, name, options)

	var r0 *v1alpha1.Trigger
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, string, v1.GetOptions) (*v1alpha1.Trigger, error)); ok {
		return rf(ctx, name, options)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, v1.GetOptions) *v1alpha1.Trigger); ok {
		r0 = rf(ctx, name, options)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*v1alpha1.Trigger)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, string, v1.GetOptions) error); ok {
		r1 = rf(ctx, name, options)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// List provides a mock function with given fields: ctx, opts
func (_m *TriggerInterface) List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.TriggerList, error) {
	ret := _m.Called(ctx, opts)

	var r0 *v1alpha1.TriggerList
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, v1.ListOptions) (*v1alpha1.TriggerList, error)); ok {
		return rf(ctx, opts)
	}
	if rf, ok := ret.Get(0).(func(context.Context, v1.ListOptions) *v1alpha1.TriggerList); ok {
		r0 = rf(ctx, opts)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*v1alpha1.TriggerList)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, v1.ListOptions) error); ok {
		r1 = rf(ctx, opts)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Update provides a mock function with given fields: ctx, trigger, opts
func (_m *TriggerInterface) Update(ctx context.Context, trigger *v1alpha1.Trigger, opts v1.UpdateOptions) (*v1alpha1.Trigger, error) {
	ret := _m.Called(ctx, trigger, opts)

	var r0 *v1alpha1.Trigger
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *v1alpha1.Trigger, v1.UpdateOptions) (*v1alpha1.Trigger, error)); ok {
		return rf(ctx, trigger, opts)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *v1alpha1.Trigger, v1.UpdateOptions) *v1alpha1.Trigger); ok {
		r0 = rf(ctx, trigger, opts)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*v1alpha1.Trigger)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *v1alpha1.Trigger, v1.UpdateOptions) error); ok {
		r1 = rf(ctx, trigger, opts)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// UpdateStatus provides a mock function with given fields: ctx, hostEntry, opts
func (_m *TriggerInterface) UpdateStatus(ctx context.Context, hostEntry *v1alpha1.Trigger, opts v1.UpdateOptions) (*v1alpha1.Trigger, error) {
	ret := _m.Called(ctx, hostEntry, opts)

	var r0 *v1alpha1.Trigger
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *v1alpha1.Trigger, v1.UpdateOptions) (*v1alpha1.Trigger, error)); ok {
		return rf(ctx, hostEntry, opts)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *v1alpha1.Trigger, v1.UpdateOptions) *v1alpha1.Trigger); ok {
		r0 = rf(ctx, hostEntry, opts)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*v1alpha1.Trigger)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *v1alpha1.Trigger, v1.UpdateOptions) error); ok {
		r1 = rf(ctx, hostEntry, opts)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Watch provides a mock function with given fields: ctx, opts
func (_m *TriggerInterface) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	ret := _m.Called(ctx, opts)

	var r0 watch.Interface
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, v1.ListOptions) (watch.Interface, error)); ok {
		return rf(ctx, opts)
	}
	if rf, ok := ret.Get(0).(func(context.Context, v1.ListOptions) watch.Interface); ok {
		r0 = rf(ctx, opts)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(watch.Interface)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, v1.ListOptions) error); ok {
		r1 = rf(ctx, opts)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

type mockConstructorTestingTNewTriggerInterface interface {
	mock.TestingT
	Cleanup(func())
}

// NewTriggerInterface creates a new instance of TriggerInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewTriggerInterface(t mockConstructorTestingTNewTriggerInterface) *TriggerInterface {
	mock := &TriggerInterface{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
